﻿class ParticleFX extends MovieClip {
	public var duration = 30;
	
	public function init(d:Number):Void {
		duration = d;
	}
	
	public function onEnterFrame() {
		duration --;
		_alpha = duration;
		if (duration <= 0) {
			this.removeMovieClip();
		}
	}
}